<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
    <body>
        <?php echo form_open();?>
        <table align="center" cellspan="1" border="0" width="600px">
            
            <tr>
                <td colspan="2" align="center">
                    テストの完成！おめでとう
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <h1>
                    あなたの点数
                    </h1>
                </td>
            </tr>
            <tr>
                <table border="1" align="center" width="600px">
                    <tr>
                        <td align="center">
                            回答番号
                        </td>
                        <td align="center">
                            点数
                        </td>
                    </tr>
            <?php
            $this->db->select('*');
            $this->db->from('qsubmit');
            $this->db->where('id_te',$id_te);
            $this->db->where('test_id',$test_sub_title);
            $this->db->order_by('id_question', 'asc'); 
            $query=$this->db->get();
                foreach($query->result() as $rows){
                    echo '<tr><td align=center>';
                    echo $rows->id_question;
                    echo '</td>';
                    echo '<td align=center>';
                    if(isset($mark_i))
                    echo $mark_i['mark'][$rows->id_question];
                    else
                        echo 0;
                    echo '</td></tr>';
                }
            ?>
                <tr>
                    <td align="center" colspan="2">
                        <h1>点数の合計:<?php echo $sum_mark;?></h1>
                    </td>
                </tr>
                </table>
            </tr>
        </table>
        </form>
    </body>